﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Xml.Serialization;

namespace Galaktika.BI.Extensibility
{
    [XmlRoot(Namespace = Galaktika.BI.Silverlight.Common.Namespace)]
    public class FormToContextWindowBind
    {
        public FormToContextWindowBind()
        {
        }

        public FormToContextWindowBind(string formId)
        {
            if (string.IsNullOrEmpty(formId))
            {
                throw new ArgumentNullException("formId");
            }
            this.FormId = formId;
        }

        public string FormId { get; set; }

        List<string> m_ContextWindowIds = new List<string>();
        [XmlArray]
        [XmlArrayItem(typeof(string))]
        public List<string> ContextWindowIds 
        { 
            get
            {
                return m_ContextWindowIds;
            }
        }
    }
}
